package com.lgx.common.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * 短信内容
 * 
 * @author acer
 *
 */
@Entity
@Table(name = "TS_MESSAGERECORDS")
public class MessageRecords implements Serializable {

	/**a
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator=IdGenerator.MESSAGERECORD_ID_GENERATOR)
	@TableGenerator(
			name = IdGenerator.MESSAGERECORD_ID_GENERATOR,
			table = IdGenerator.GENERATOR_TABLE,
			pkColumnName = IdGenerator.GEN_NAME,
			pkColumnValue = IdGenerator.MESSAGERECORD_ID_GENERATOR,
			valueColumnName = IdGenerator.GEN_VALUE,
			initialValue = 1,
			allocationSize = 1
	)
	private Long id;
	
	/**
	 * 短信内容
	 */
	private String content;

	/**
	 * 接收手机
	 */
	private String mobiles;
	
	/**
	 * 记录时间
	 */
	private Date recordDate;
	
	/**
	 * 接收用户
	 */
	private String users;
	
	/**
	 * 接收用户ID
	 */
	private String userIds;
	
	/**
	 * 收发状态
	 */
	private String state;
	
	/**
	 * 发送人
	 */
	private String sender;
	
	/**
	 * 发送人ID
	 */
	private String sendId;
	
	/**
	 * 发送时间
	 */
	private Date sendDate;
	
	/**
	 * 发送类型
	 */
	private String sendType;
	

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getRecordDate() {
		return recordDate;
	}

	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}

	public String getUsers() {
		return users;
	}

	public void setUsers(String users) {
		this.users = users;
	}

	public String getUserIds() {
		return userIds;
	}

	public void setUserIds(String userIds) {
		this.userIds = userIds;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getSendId() {
		return sendId;
	}

	public void setSendId(String sendId) {
		this.sendId = sendId;
	}

	public Date getSendDate() {
		return sendDate;
	}

	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}

	public String getSendType() {
		return sendType;
	}

	public void setSendType(String sendType) {
		this.sendType = sendType;
	}

	public String getMobiles() {
		return mobiles;
	}

	public void setMobiles(String mobiles) {
		this.mobiles = mobiles;
	}
}
